from influxdb import InfluxDBClient

from util.config_center import ConfigCenter


class InfluxConnect:
    """influxdb连接"""
    def __new__(cls, *args, **kwargs):
        # 获取配置文件路径
        config = ConfigCenter.get_influx_config()
        return InfluxDBClient(**config)
